package com.rivulet.ncards;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    Button hello,word_game,card_game;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        hello=(Button) findViewById(R.id.hello);
        word_game=(Button) findViewById(R.id.word_game);
        card_game=(Button) findViewById(R.id.card_game);
        hello.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,HelloActivity.class);
                MainActivity.this.startActivity(intent);
            }
        });
        word_game.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,WordGameActivity.class);
                startActivity(intent);
            }
        });
        card_game.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,CardGameActivity.class);
                startActivity(intent);
            }
        });
    }
}